package tw.com.softleader.softleader_spring_bruce.app;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import tw.com.softleader.softleader_spring_bruce.service.SpringService;

public class SpringApp {
	
	private static Logger log = LoggerFactory.getLogger(SpringApp.class);
	
	/**
	 * @param args
	 */
	public static void main(String[] args){
		
		@SuppressWarnings("resource")
		ApplicationContext applicationContext = 
				new ClassPathXmlApplicationContext(
						new String[]{"spring-service.xml"}
				);
		
		
//		SpringService ss = (SpringService) applicationContext.getBean("springService");
//		log.info(ss.getHello("Bruce"));
//		
//		log.info(ss.getAllFruits().toString());
		
	}
	
}
